// __PUBLIC__/js/page/admin/user/user
require(['../../common'], function() {
  require(['blacklist.blacklist'])
})

define('blacklist.blacklist', [
  'jquery',
  'page/grid'
], function($, Grid) {
  'use strict';

  var $table = $('.table')
  var mygrid = new Grid($table)
  mygrid.init()

  $(document)
    .on('click', '#J_more', function(e) {
        e.preventDefault()
        $(this).next('.more-constraints').toggle()
  })
    
  $('#J_search').on('click', function(e) {
    e.preventDefault()
    $('#search').submit();
  })
})
